<%@page import="java.util.ArrayList"%>
<%@page import="sopt.engSearch.NaverSearchProc"%>
<%@page import="statics.SoptVars"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="sopt.engSearch.TranslateProc"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>    
<%
	request.setCharacterEncoding("UTF-8");
   	SoptHashMap hm = RequestManager.getRequest(request);
   	String curStr = TranslateProc.getTranslatedString(hm.get("Q").toString(),SoptVars.ENG_TO_KOR);
   	
   	//지역 검색 결과
   	//title,link,description,telephone,address,mapx,mapy
   	//
   	//네이버 너무 맞지 않음
   	 ArrayList lt = NaverSearchProc.getLocalSearchList(curStr,1,5);
    	
    	if(lt!=null&&lt.size()>0){
    %>
	<div>
		<%for(int i=0;i<lt.size();i++){
			hm = (SoptHashMap)lt.get(i);
		%>
		<p>
			<b><%=TranslateProc.getTranslatedString(hm.get("TITLE").toString(),SoptVars.KOR_TO_ENG)%></b>
			[<%=hm.get("TITLE").toString()%>]
		</p>
		<p>
			<a href='<%=hm.get("LINK")%>'>View more information</a>
		</p>
		<p>
			<%=TranslateProc.getTranslatedString(hm.get("DESCRIPTION").toString(),SoptVars.KOR_TO_ENG)%>
		</p>
		<p>
			<%=hm.get("TELEPHONE")%>
		</p>
		
		<p>
			<%=TranslateProc.getTranslatedString(hm.get("ADDRESS").toString(),SoptVars.KOR_TO_ENG)%>
		</p>
		<p>
			<%=hm.get("ADDRESS")%>
		</p>
		<p>
			<input type="button" onclick="javascript:createMap('<%=hm.get("MAPX") %>','<%=hm.get("MAPY") %>')" value="View Map"/>
		</p>
		<%}%>
	</div>
<%}%>

